package com.ruoyi.project.jiaqin.key.domain;

import java.util.Date;
import java.util.List;

import com.ruoyi.project.jiaqin.val.domain.ClassAttrVal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 分类属性名对象 class_attr_key
 *
 * @author admin
 * @date 2020-12-21
 */
public class ClassAttrKey extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 属性名ID */
    @Excel(name = "属性名ID")
    private String id;

    /** 分类ID */
    @Excel(name = "分类ID")
    private String quotationClassId;

    private String quotationClassName;

    /** 属性名称 */
    @Excel(name = "属性名称")
    private String attrName;

    private List<ClassAttrVal> vals;

    public List<ClassAttrVal> getVals() {
        return vals;
    }

    public void setVals(List<ClassAttrVal> vals) {
        this.vals = vals;
    }

    public String getQuotationClassName() {
        return quotationClassName;
    }

    public void setQuotationClassName(String quotationClassName) {
        this.quotationClassName = quotationClassName;
    }

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setQuotationClassId(String quotationClassId)
    {
        this.quotationClassId = quotationClassId;
    }

    public String getQuotationClassId()
    {
        return quotationClassId;
    }
    public void setAttrName(String attrName)
    {
        this.attrName = attrName;
    }

    public String getAttrName()
    {
        return attrName;
    }
    public void setCreateAt(Date createAt)
    {
        this.createAt = createAt;
    }

    public Date getCreateAt()
    {
        return createAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("quotationClassId", getQuotationClassId())
            .append("attrName", getAttrName())
            .append("createAt", getCreateAt())
            .toString();
    }
}
